package com.zhw.mapper;

import com.zhw.pojo.entry.DevPlan;
import com.zhw.pojo.vo.DevPlanVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DevPlanMapper {
    @Select("select d.*,s.dev_result from sale_chance s left join dev_plan d\n" +
            "on d.sale_chance_id =s.id where s.id=#{id}")
    List<DevPlanVO> getByID(Integer id);



    void add(DevPlan devPlan);


    void update(DevPlan devPlan);

    @Delete("delete from dev_plan where id =#{id}")
    void deleteByID(Integer id);
}
